package com.my.cd.chain;

/**
 * 请求决策处理抽象类（Handler）
 * 持有下一个决策处理类，形成链状结构
 */
public abstract class Approver {
    protected String name;
    protected Approver nextApprover;

    public abstract void processRequest(PurchaseRequest request);

    public Approver(String name) {
        this.name = name;
    }

    public void setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }
}
